package com.hotel_management_backstage.lin.dao;

import com.hotel_management_backstage.lin.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface SysRoleMapper {
//    @Select("SELECT * FROM sys_role WHERE id = #{id}")
    SysRole selectById(Integer id);

//    @Select("SELECT * FROM sys_role WHERE name = #{name}")
    SysRole selectByName(String name);
}
